namespace MoreLinq.Test;

using System.Collections.Generic;

class BreakingReadOnlyCollection<T>(IReadOnlyCollection<T> collection) :
    BreakingSequence<T>, IReadOnlyCollection<T>
{
    readonly IReadOnlyCollection<T> collection = collection;

    public BreakingReadOnlyCollection(params T[] values) : this((IReadOnlyCollection<T>)values) { }

    public int Count => this.collection.Count;
}
